package com.coderman.common.starter;

import com.coderman.common.starter.nacos.datajson.annotations.NacosConfig;
import com.coderman.utils.clazz.ClassUtils;

import java.lang.annotation.Annotation;
import java.util.List;

/**
 * Description:
 * date: 2020/9/30 3:34 下午
 *
 * @author fanchunshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
public class Main {
    public static void main(String[] args) {
        List<Class<?>> classList = ClassUtils.getClass("com.coderman.common.starter.entity", true);
        System.out.println(classList.toString());
        for (Class<?> clazz : classList){
            NacosConfig nacosConfig = (NacosConfig) clazz.getDeclaredAnnotation(NacosConfig.class);
            System.out.println("b = "+nacosConfig.desc());
        }

    }


}
